home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 14 / CU Amiga Magazine's Super CD-ROM 14 (1997)(EMAP Images)(GB)(Track 1 of 3)[!][issue 1997-09].iso / CUCD / Programming / IEditor / Include / generatorlib.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-06-17  |  1.3 KB  |  49 lines

  1. #ifndef IEDIT_GENERATOR_H
  2. #define IEDIT_GENERATOR_H
  3. /*
  4. **      Interface Editor generators definitions.
  5. **
  6. **      (C) Copyright 1996 Simone Tellini
  7. **          All Rights Reserved
  8. */
  9.  
  10.  
  11. struct Generator {
  12.         struct Library      Lib;
  13.         UBYTE              *Ext;
  14.         UBYTE              *Pattern;
  15. };
  16.  
  17.  
  18. #define     MAXPATH     256
  19.  
  20. /*  This structure is returned by OpenFiles  */
  21.  
  22. struct GenFiles {
  23.         BPTR        Std;    /* standard file, e.g. GMExample.c      */
  24.         BPTR        Main;   /* main file, e.g. GMExampleMain.c      */
  25.         BPTR        XDef;   /* XDef file, e.g. GMExample.h          */
  26.         BPTR        Temp;   /* Template File, e.g. GMExample_temp.c */
  27.         APTR        User1;  /* some user pointers                   */
  28.         APTR        User2;
  29.         APTR        User3;
  30.         UBYTE       XDefName[ MAXPATH ]; /* useful because it's     */
  31.                          /* usually included in the */
  32.                          /* Std file by the         */
  33.                          /* WriteHeaders routine    */
  34. };
  35.  
  36.  
  37.  
  38.  
  39. /*  Error Codes    */
  40.  
  41. #define  GENERATOR_OK           0
  42. #define  GENERATOR_IOERR        1   /* read-write error            */
  43. #define  GENERATOR_NOTSUPPORTED 2   /* We're asked to do something */
  44.                     /* we cannot do                */
  45. #define  GENERATOR_LATER        3   /* call us later               */
  46. #define  GENERATOR_NOMEMORY     4   /* out of memory               */
  47.  
  48. #endif
  49.